package com.css.backblog.controller;


import com.css.backblog.entity.MUser;
import com.css.backblog.mapper.MUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author css
 * @since 2022-03-27
 */
@RestController
@RequestMapping("/backblog/m-user")
public class MUserController {
    @Autowired
    MUserMapper mUserMapper;
    @GetMapping("/{id}")
    public MUser getById(@PathVariable("id")Long id){
        return mUserMapper.selectById(id);
    }

}
